Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Composer script args #15

Closed
wants to merge 1 commit into from
Closed

Fix Composer script args #15

wants to merge 1 commit into from

Conversation

szepeviktor
Copy link
Contributor

$ composer run --help
Description:
  Runs the scripts defined in composer.json

Usage:
  run-script [options] [--] [<script> [<args>...]]

@mlocati
Copy link
Owner

mlocati commented Oct 29, 2023

composer run-script phpcs -- --ansi --no-interaction --dry-run --diff

executes "run-script" without options, and passes --ansi --no-interaction --dry-run --diff to the "phpcs" script

composer run-script --ansi --no-interaction phpcs -- --dry-run --diff

executes "run-script" with --ansi --no-interaction, and passes --dry-run --diff to the "phpcs" script.

I want the former, not the latter.

@szepeviktor
Copy link
Contributor Author

Oh!! 😲

@szepeviktor szepeviktor deleted the patch-2 branch October 29, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants